package org.ajc.auth.service.impl;

import org.ajc.auth.domain.Menu;
import org.ajc.auth.mapper.MenuMapper;
import org.ajc.auth.service.IMenuService;
import org.ajc.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ajc
 * @since 2024-01-22
 */
@Service
@Transactional
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> queryMenuTree(Long id) {
        return menuMapper.queryMenuTree(id);
    }

    @Override
    public List<Menu> menuTree() {
        return menuMapper.menuTree();
    }
}
